package com.java.onlineshop.impl;

import com.java.onlineshop.dao.IProvinceDao;
import com.java.onlineshop.pojo.Province;
import com.java.onlineshop.util.BasicDao;

/**
 * @program: onlineshop
 * @description: IProvinceDao
 * @author: ShuangChenYue
 * @create: 2021-06-03 10:00
 **/
public class ProvinceDaoImpl implements IProvinceDao
{

    @Override
    public Province findProvinceById(int id)
    {
        return BasicDao.getObject(Province.class,"select * from province where id=?",id);
    }
}
